home *** CD-ROM | disk | FTP | other *** search
/ The Ultimate Frank Lloyd…ght - America's Architect / Ultimate Frank Lloyd Wright, The - America's Architect (1994)(Microsoft Home).iso / pre / flw / flwdes.dir / 00397_Script_397 < prev    next >
Text File  |  1994-11-15  |  3KB  |  135 lines

  1. on startMovie
  2.   global nowFrame, dialogOn
  3.   global  horNess, currMM
  4.   set dialogOn = FALSE
  5.   set currMM = "FLWWW"
  6.   puppetSprite 21, TRUE
  7.   puppetSprite 22, TRUE
  8.   puppetSprite 23, TRUE
  9.   set the immediate of sprite 23 to TRUE
  10.   set the stretch of sprite 23 to FALSE
  11.   puppetSprite 6, TRUE
  12.   repeat with i = 12 to 16
  13.     puppetSprite i, TRUE
  14.     set the immediate of sprite i to TRUE
  15.   end repeat
  16. end startMovie
  17.  
  18. on stepMovie
  19.   global nowFrame,currFrame
  20.   if nowFrame <> currFrame then
  21.     seeAlsoList
  22.     set currFrame = nowFrame
  23.   end if
  24. end stepMovie
  25.  
  26. on stopMovie
  27.   set the castNum of sprite 21 to 1050
  28.   updateStage
  29.   puppetSprite 21, FALSE
  30.   put " " into field "SeeAlsoText"
  31. end stopMovie
  32.  
  33. on saveLocals
  34.   global lastFrame, nowFrame, lastMovie
  35.   set lastFrame = nowFrame
  36.   set lastMovie = "FLWDES"
  37. end saveLocals
  38.  
  39. on buttonState
  40.   global FrankNav, dialogOn
  41.   global bflag, noTx
  42.   
  43.   
  44.   if dialogOn = FALSE then
  45.     
  46.     sectionCheck
  47.     
  48.     -- don't check global buttons unless mouse is down at bottom
  49.     if (the mouseV > 200) or (bFlag = TRUE) then
  50.       doState
  51.       set bFlag = FALSE
  52.     end if
  53.     
  54.   else if dialogOn = TRUE then
  55.     if the mouseDown then
  56.       if the mouseCast <> the number of cast "glossDialog" then
  57.         beep
  58.       end if
  59.     end if
  60.   end if
  61.   
  62. end buttonState
  63.  
  64. on deBackStep
  65.   global nowFrame
  66.   puppetSprite 6, FALSE
  67.   unLoadCast 22, 163
  68.   if nowFrame = "de000sta002°°°" then
  69.     go to "de000fur067°°°" of movie "FLWDEF"
  70.   else
  71.     go to (the frame - 1)
  72.   end if
  73.   updateStage
  74. end deBackStep
  75.  
  76. on deForStep
  77.   global nowFrame
  78.   puppetSprite 6, FALSE
  79.   unLoadCast 22, 163
  80.   if nowFrame = "de000sta074°°°" then 
  81.     go to "de000sto001°°°" of movie "FLWDEE"
  82.   else
  83.     go to (the frame + 1)
  84.   end if
  85.   updateStage
  86. end deForStep
  87.  
  88. on sectionCheck
  89.   global lastSprite, nowFrame, dialogOn
  90.   if dialogOn = FALSE then
  91.     if rollover(12) then
  92.       set the castNum of sprite 12 to 20
  93.     else
  94.       set the castNum of sprite 12 to 8
  95.     end if
  96.     
  97.     if rollover(13) then
  98.       set the castNum of sprite 13 to 21
  99.     else
  100.       set the castNum of sprite 13 to 9
  101.     end if
  102.     
  103.     if rollover(14) then
  104.       set the castNum of sprite 14 to 17
  105.     else
  106.       set the castNum of sprite 14 to 5
  107.     end if
  108.     
  109.     if rollover(16) then
  110.       set the castNum of sprite 16 to 19
  111.     else
  112.       set the castNum of sprite 16 to 7
  113.     end if
  114.   end if
  115. end sectionCheck
  116.  
  117. on textRoll txHt
  118.   global origLocV, topHat, dialogOn, SeeAlsoBox
  119.   if dialogOn = FALSE and SeeAlsoBox = FALSE then
  120.     set topHat = txHt + (the height of sprite 6 / 2)
  121.     if the width of sprite 6 > 300 then
  122.       if the mouseH > 229 and the mouseV > 363 and the mouseV < 431 then
  123.         set the locV of sprite 6 to topHat
  124.       else if (the mouseH > 610) or (the mouseH < 229) or (the mouseV > 431) or (the mouseV < txHt) then
  125.         set the locV of sprite 6 to 485
  126.       end if
  127.     else 
  128.       if the mouseH > 414 and the mouseV > 363 and the mouseV < 431 then
  129.         set the locV of sprite 6 to topHat
  130.       else if the mouseH > 610 or the mouseH < 414 or the mouseV > 431 or the mouseV < txHt then
  131.         set the locV of sprite 6 to 549
  132.       end if
  133.     end if
  134.   end if
  135. end textRoll